<?php

include('../include/api.php');
include('../include/security.php');
include($siteLocalPath."/dbConnect.php");
include($siteLocalPath."/classes/class.page.php");
include($siteLocalPath."/classes/class.member.php");
include ($siteLocalPath."/libs/grid/phpmydatagrid.class.php");
// Load member data


$member=new Member();
$mdata=$member->find("member_ID='".$_SESSION['S_memberID']."'");


/* Create object */
	$objGrid = new datagrid;
	$objGrid -> methodForm("post");
	$objGrid ->pathtoimages($siteHttpPath."/libs/grid/images/");
	$objGrid -> friendlyHTML();
	$objGrid -> closeTags(true);  
	$objGrid ->language($_SESSION['S_memberLang']);
	$objGrid -> form('skyform',true);
	$objGrid -> searchby("member_id,firstName,lastName,loginName,email"); 
$objGrid->isADO;
	$objGrid -> conectadb($host, $usernamedb, $passworddb, $database,true,$dbtype);
	$objGrid -> tabla ("member");
	$objGrid -> buttons(true,true,true,true);
	$objGrid -> keyfield("member_id");

	
	$objGrid -> decimalDigits(2);
	$objGrid -> decimalPoint(",");
	
	$objGrid -> datarows(20); 
	$objGrid -> paginationmode('links'); 

	
	$objGrid -> FormatColumn("member_id","member_id", 0, 0, 2, "0",0,0);
	$objGrid -> FormatColumn("firstName",$Q['firstName'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("lastName",$Q['lastName'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("loginName",$Q['loginName'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("loginPassword",$Q['loginPassword'], 30, 30, 0, "100");
	$objGrid -> FormatColumn("email",$Q['email'], 30, 30, 0, "50");
	$objGrid -> FormatColumn("credits",$Q['credits'], 30, 30, 0, "50");
	$objGrid -> FormatColumn("isActive",$Q['isActive'], 30, 30, 0, "50");
	$objGrid -> FormatColumn("lang",$Q['langu'], 30, 30, 0, "100","center","select:select langName,langTitle From language");
	$objGrid -> FormatColumn("theme",$Q['theme'], 30, 30, 0, "100","center","select:select theme,theme From theme");
	$objGrid -> FormatColumn("groupName",$Q['group'], 30, 30, 0, "50","center","select:select groupName,groupName From groups");

	

	
	$pageTitleUp=$Q['adminMemebrs'];
	$pageTitle=$Q['adminMemebrs'];
	
	include($themesLocalPath."/".$themeName."templates/master.php");
	

?>
